<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class OrderDeliver extends Validate
{
    protected $rule = [
        'id' => 'require',
        'receiver' => 'require',
        'receiver_tel' => 'require',
        'province' => 'require',
        'city' => 'require',
        'address_details' => 'require',
        'express_id' => 'require',
        'express_code' => 'require'
    ];

    protected $message = [
        'id.require' => '订单不存在',
        'receiver.require' => '请填写收货人',
        'receiver_tel.require' => '请填写收货人联系方式',
        'province.require' => '请选择省',
        'city.require' => '请选择市',
        'address_details.require' => '请填写详细收货地址',
        'express_id.require' => '请选择物流公司',
        'express_code.require' => '请填写物流单号'
    ];
}